package com.test.model;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @author zxw
 * create 2016年3月7日 上午10:43:11
 */
@Entity
@Table(name="rcc_d_houseValveCurrentData")
public class HouseValveCurrentData {
	private int houseValveId;
	private Boolean state;
	private Date equTime;
	private Date planTime;
	private Date readTime;
	private BigDecimal workTime;
	private BigDecimal settingTemperature;
	private Boolean isLockTemperature;
	private BigDecimal temperature;
	private BigDecimal temperatureUp;
	private BigDecimal temperatureDown;
	private String controlType;
	private Boolean switchState;
	private Boolean isFault;
	private HouseValve houseValve;
	private Boolean isAlarm;
	private String alarmSettingIds;
	private String faultTypeIds;
	private BigDecimal remainderHeat;
	private String reason;

    @Id
    @Column(name = "houseValveId", unique = true, nullable = false)
	public int getHouseValveId() {
		return houseValveId;
	}
	public void setHouseValveId(int houseValveId) {
		this.houseValveId = houseValveId;
	}
	@Column(name = "reason")
	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}


	@Column(name = "workTime")
	public BigDecimal getWorkTime() {
		return workTime;
	}
	public void setWorkTime(BigDecimal workTime) {
		this.workTime = workTime;
	}
	
	@Column(name = "equTime")
	public Date getEquTime() {
		return equTime;
	}
	public void setEquTime(Date equTime) {
		this.equTime = equTime;
	}
	
	@Column(name = "planTime")
	public Date getPlanTime() {
		return planTime;
	}
	public void setPlanTime(Date planTime) {
		this.planTime = planTime;
	}
	
	@Column(name = "readTime")
	public Date getReadTime() {
		return readTime;
	}
	public void setReadTime(Date readTime) {
		this.readTime = readTime;
	}
	
	@Column(name = "state")
	public Boolean getState() {
		return state;
	}
	public void setState(Boolean state) {
		this.state = state;
	}
	
	@Column(name = "isFault")
	public Boolean getIsFault() {
		return isFault;
	}

	public void setIsFault(Boolean isFault) {
		this.isFault = isFault;
	}
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "houseValveId",insertable=false,updatable=false)
	public HouseValve getHouseValve() {
		return houseValve;
	}
	public void setHouseValve(HouseValve houseValve) {
		this.houseValve = houseValve;
	}
	
	@Column(name = "settingTemperature")
	public BigDecimal getSettingTemperature() {
		return settingTemperature;
	}
	public void setSettingTemperature(BigDecimal settingTemperature) {
		this.settingTemperature = settingTemperature;
	}
	
	@Column(name = "isLockTemperature")
	public Boolean getIsLockTemperature() {
		return isLockTemperature;
	}
	public void setIsLockTemperature(Boolean isLockTemperature) {
		this.isLockTemperature = isLockTemperature;
	}
	
	@Column(name = "temperature")
	public BigDecimal getTemperature() {
		return temperature;
	}
	public void setTemperature(BigDecimal temperature) {
		this.temperature = temperature;
	}
	
	@Column(name = "temperatureUp")
	public BigDecimal getTemperatureUp() {
		return temperatureUp;
	}
	public void setTemperatureUp(BigDecimal temperatureUp) {
		this.temperatureUp = temperatureUp;
	}
	
	@Column(name = "temperatureDown")
	public BigDecimal getTemperatureDown() {
		return temperatureDown;
	}
	public void setTemperatureDown(BigDecimal temperatureDown) {
		this.temperatureDown = temperatureDown;
	}
	
	
	@Column(name = "controlType")
	public String getControlType() {
		return controlType;
	}
	public void setControlType(String controlType) {
		this.controlType = controlType;
	}
	
	@Column(name = "switchState")
	public Boolean getSwitchState() {
		return switchState;
	}
	public void setSwitchState(Boolean switchState) {
		this.switchState = switchState;
	}
	
	
	@Column(name = "isAlarm")
	public Boolean getIsAlarm() {
		return isAlarm;
	}
	public void setIsAlarm(Boolean isAlarm) {
		this.isAlarm = isAlarm;
	}
	@Column(name = "alarmSettingIds")
	public String getAlarmSettingIds() {
		return alarmSettingIds;
	}

	public void setAlarmSettingIds(String alarmSettingIds) {
		this.alarmSettingIds = alarmSettingIds;
	}

	
	@Column(name = "faultTypeIds")
	public String getFaultTypeIds() {
		return faultTypeIds;
	}

	public void setFaultTypeIds(String faultTypeIds) {
		this.faultTypeIds = faultTypeIds;
	}

	@Column(name = "remainderHeat")
	public BigDecimal getRemainderHeat() {
		return remainderHeat;
	}

	public void setRemainderHeat(BigDecimal remainderHeat) {
		this.remainderHeat = remainderHeat;
	}
}
